//
//  UIHeadtableVIew.m
//  FlowerRainGround
//
//  Created by lanou on 16/4/21.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "UIHeadtableVIew.h"

@implementation UIHeadtableVIew

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.headImageView = [[UIImageView alloc] init];
        self.headImageView.center = CGPointMake(kWidth /2 , 100);
        self.headImageView.bounds = CGRectMake(0, 0, 80, 80);
        self.headImageView.backgroundColor = [UIColor whiteColor];
        self.headImageView.layer.cornerRadius = 40;
        self.headImageView.layer.masksToBounds = YES;
//        self.headImageView.image = [userManager getUsrHeadImage];
        [self addSubview:self.headImageView];
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(60, 20, 200, 20)];
        self.nameLabel.text = [userManager getUsrName];//用户名
        [self addSubview:self.nameLabel];
        
        self.introduceLabel = [[UILabel  alloc] initWithFrame:CGRectMake(60, 20, 250, 10)];
        self.introduceLabel.font = [UIFont systemFontOfSize:14];
        [self addSubview:self.introduceLabel];
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
